/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Chango
 */
public class Node {

        public char character;
	public int frequency;
	public String code;
	public Node right, left;
	public Node leftSon, rightSon;
        public boolean tipe;

         public Node(char character, int frequency, boolean tipe){
		this.character=character;
		this.frequency=frequency;
		this.tipe=tipe;
		code="";
	}

    public char getCharacter() {
        return character;
    }

    public void setCharacter(char character) {
        this.character = character;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getFrequency() {
        return frequency;
    }

    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }

    public Node getLeft() {
        return left;
    }

    public void setLeft(Node left) {
        this.left = left;
    }

    public Node getLeftSon() {
        return leftSon;
    }

    public void setLeftSon(Node leftSon) {
        this.leftSon = leftSon;
    }

    public Node getRight() {
        return right;
    }

    public void setRight(Node right) {
        this.right = right;
    }

    public Node getRightSon() {
        return rightSon;
    }

    public void setRightSon(Node rightSon) {
        this.rightSon = rightSon;
    }

    public boolean isTipe() {
        return tipe;
    }

    public void setTipe(boolean tipe) {
        this.tipe = tipe;
    }

}
